-#  Link to the "Previous" page
-#  available local variables
-#    url:           url to the previous page
-#    current_page:  a page object for the currently displayed page
-#    total_pages:   total number of pages
-#    per_page:      number of items to fetch per page
-#    remote:        data-remote

- is_first_page = current_page.first?
- view = is_first_page ? 'kaminari/gitlab/disabled_page_cursor_nav' : 'kaminari/gitlab/page_cursor_nav'

= render view, testid: 'kaminari-pagination-prev', rel: 'prev', url: url, remote: remote, aria: { label: s_('Pagination|Go to previous page') } do
  = sprite_icon('chevron-lg-left')
